package com.fcy.teamwork.business.main.homepage.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.fcy.teamwork.base.BaseRVAdapter
import com.fcy.teamwork.bean.Task
import com.fcy.teamwork.databinding.MineItemButtonBinding
import com.fcy.teamwork.pojo.ProjectInfo

class ProjectsEntranceAdapter : BaseRVAdapter<ProjectInfo, MineItemButtonBinding>() {

    override fun bindView(holder: VH, position: Int, data: ProjectInfo) {
        (holder.binding as? MineItemButtonBinding)?.apply {
            tvName.text = data.name
        }
    }

    override fun createBinding(
        inflater: LayoutInflater,
        parent: ViewGroup,
        viewType: Int
    ) = MineItemButtonBinding.inflate(inflater, parent, false)

}